<a name="top"></a>
<table width="100%" cellspacing="0" cellpadding="10" border="0" align="center">
<tr>
    <td class="bodyline"><table width="100%" cellspacing="0" cellpadding="0" border="0">
	   <tr>
		  <td>
		     <%= link_to image_tag("styles/subSilver/logo_phpBB.gif", :border => 0, :alt => $system.name+" index", :vspace => 1), :controller => '' %>
		  </td>
		<td align="center" width="100%" valign="middle"><span class="maintitle"><%= $system.name %>
		</span><br /><span class="gen"><%= $system.description %><br />&nbsp; </span>

<table cellspacing="0" cellpadding="2" border="0">
<tr>
<td align="center" valign="top" nowrap="nowrap">
<span class="mainmenu">&nbsp;
<%= link_to image_tag("styles/"+$system.css+"/icon_mini_faq.gif", :size => "12x13", :border => 0, :alt => "FAQ", :hspace => 3)+"FAQ", {:controller => 'faq'}, {:class => 'mainmenu'} %>&nbsp;
<%= link_to image_tag("styles/"+$system.css+"/icon_mini_search.gif", :size => "12x13", :border => 0, :alt => "Search", :hspace => 3)+"Search", {:controller => 'search'}, {:class => 'mainmenu'} %>&nbsp;
<%= link_to image_tag("styles/"+$system.css+"/icon_mini_members.gif", :size => "12x13", :border => 0, :alt => "Memberlist", :hspace => 3)+"Memberlist", {:controller => 'user', :action => 'list'}, {:class => 'mainmenu'} %>&nbsp;
<%= link_to image_tag("styles/"+$system.css+"/icon_mini_groups.gif",  :size => "12x13", :border => 0, :alt => "Usergroups", :hspace => 3)+"Usergroups", {:controller => 'group', :action => 'list'}, {:class => 'mainmenu'} %>&nbsp;
<%= link_to image_tag("styles/"+$system.css+"/icon_mini_register.gif",  :size => "12x13", :border => 0, :alt => "Register", :hspace => 3)+"Register", {:controller => 'user', :action => 'signup'}, {:class => 'mainmenu'} %>&nbsp;
</span>
</td>
</tr>
<tr>
    <td height="25" align="center" valign="top" nowrap="nowrap">
    <span class="mainmenu">&nbsp;
    <%= link_to image_tag("styles/"+$system.css+"/icon_mini_profile.gif",  :size => "12x13", :border => 0, :alt => "Profile", :hspace => 3)+"Profile", {:controller => 'profile'}, {:class => 'mainmenu'} %>&nbsp;
    <%= link_to image_tag("styles/"+$system.css+"/icon_mini_message.gif",  :size => "12x13", :border => 0, :alt => "Message", :hspace => 3)+"Log in to check your messages", {:controller => 'messages'}, {:class => 'mainmenu'} %>&nbsp;
    <%= link_to image_tag("styles/"+$system.css+"/icon_mini_login.gif",  :size => "12x13", :border => 0, :alt => "Login", :hspace => 3)+"Log in", {:controller => 'user', :action => 'login'}, {:class => 'mainmenu'} %>&nbsp;
    </span>
    </td>
</tr>
</table>
</td>
</tr>
</table>

<table width="100%" cellspacing="2" cellpadding="2" border="0">
  <tr>
	<td align="left" valign="bottom" colspan="2">
	<%= link_to h(@topic.name), {:action => 'show', :id => @topic}, {:class => "maintitle"} %><br />
	  <span class="gensmall"><b></b><br />

	  &nbsp; </span></td>
  </tr>
</table>

<table width="100%" cellspacing="2" cellpadding="2" border="0">
  <tr>
	<td align="left" valign="bottom" nowrap="nowrap"><span class="nav">
	<%= link_to image_tag("styles/subSilver/lang_english/post.gif", :border => 0, :alt => "Post new topic", :align => "middle"), :action => 'new', :id => @forum %>&nbsp;&nbsp;&nbsp;
	<%= link_to image_tag("styles/subSilver/lang_english/reply.gif", :border => 0, :alt => "Reply to topic", :align => "middle"), :controller => 'post', :action => 'new', :id => @topic %></span></td>
	<td align="left" valign="middle" width="100%"><span class="nav">&nbsp;&nbsp;&nbsp;
	<%= link_to h($system.name)+" Forum Index", {:controller => ''}, :class => 'nav' %> -> <%= link_to h(@forum.name), {:controller => 'forum', :action => 'show', :id => @forum}, :class => 'nav' %>
	</span></td>

  </tr>
</table>

<table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0">
	<tr align="right">
		<td class="catHead" colspan="2" height="28"><span class="nav"><a href="viewtopic.php?t=8&amp;view=previous" class="nav">View previous topic</a> :: <a href="viewtopic.php?t=8&amp;view=next" class="nav">View next topic</a> &nbsp;</span></td>
	</tr>
	
	<tr>

		<th class="thLeft" width="150" height="26" nowrap="nowrap">Author</th>
		<th class="thRight" nowrap="nowrap">Message</th>
	</tr>
	<% for post in @posts %>
	<tr>
		<td width="150" align="left" valign="top" class="row1"><span class="name">
		<!-- aname="postid" --><b><%= post.user.login %></b></span><br /><span class="postdetails"><br /><br /><br />
		Joined: <%= post.user.created_at.strftime('%b %d, %Y') %><br />Posts: <%= post.user.posts.size %><br /></span><br /></td>
		<td class="row1" width="100%" height="28" valign="top">
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td width="100%">
				<%= image_tag("styles/subSilver/icon_minipost.gif", :size => "12x9", :alt => "Post", :title => "Post", :border => 0) %>
				<span class="postdetails">Posted: <%= post.created_at.strftime('%b %d, %Y %I:%M %p') %><span class="gen">&nbsp;</span>&nbsp; &nbsp;Post subject: <%=h post.name %></span></td>
				<td valign="top" nowrap="nowrap">
				<a href="posting.php?mode=quote&amp;p=22"><img src="/images/styles/subSilver/lang_english/icon_quote.gif" alt="Reply with quote" title="Reply with quote" border="0" /></a>   </td>
			</tr>
			<tr>
				<td colspan="2"><hr /></td>
			</tr>
			<tr>
				<td colspan="2"><span class="postbody"><%=h post.content %></span><span class="gensmall"></span></td>
			</tr>
		</table></td>
	</tr>
	<tr>
		<td class="row1" width="150" align="left" valign="middle"><span class="nav"><a href="#top" class="nav">Back to top</a></span></td>
		<td class="row1" width="100%" height="28" valign="bottom" nowrap="nowrap"><table cellspacing="0" cellpadding="0" border="0" height="18" width="18">

			<tr>
				<td valign="middle" nowrap="nowrap">
				<%= link_to image_tag("styles/subSilver/lang_english/icon_profile.gif", :alt => "View user's profile", :title => "View user's profile", :border => 0), :controller => 'profile', :action => 'show', :id => post.user.profile.id %>    <script language="JavaScript" type="text/javascript"><!--

	if ( navigator.userAgent.toLowerCase().indexOf('mozilla') != -1 && navigator.userAgent.indexOf('5.') == -1 && navigator.userAgent.indexOf('6.') == -1 )
		document.write(' ');
	else
		document.write('</td><td>&nbsp;</td><td valign="top" nowrap="nowrap"><div style="position:relative"><div style="position:absolute"></div><div style="position:absolute;left:3px;top:-1px"></div></div>');

				//--></script><noscript></noscript></td>
			</tr>
		</table></td>
	</tr>
	<tr>
		<td class="spaceRow" colspan="2" height="1"><img src="templates/subSilver/images/spacer.gif" alt="" width="1" height="1" /></td>

	</tr>
	<% end %>
	<tr align="center">
		<td class="catBottom" colspan="2" height="28"><table cellspacing="0" cellpadding="0" border="0">
			<tr><form method="post" action="viewtopic.php?t=8&amp;start=0">

				<td align="center"><span class="gensmall">Display posts from previous: <select name="postdays"><option value="0" selected="selected">All Posts</option><option value="1">1 Day</option><option value="7">7 Days</option><option value="14">2 Weeks</option><option value="30">1 Month</option><option value="90">3 Months</option><option value="180">6 Months</option><option value="364">1 Year</option></select>&nbsp;<select name="postorder"><option value="asc" selected="selected">Oldest First</option><option value="desc">Newest First</option></select>&nbsp;<input type="submit" value="Go" class="liteoption" name="submit" /></span></td>
			</form></tr>
		</table></td>

	</tr>
</table>

<table width="100%" cellspacing="2" cellpadding="2" border="0">
  <tr>
	<td align="left" valign="bottom" nowrap="nowrap"><span class="nav">
	<%= link_to image_tag("styles/subSilver/lang_english/post.gif", :border => 0, :alt => "Post new topic", :align => "middle"), :action => 'new', :id => @forum %>&nbsp;&nbsp;&nbsp;
	<%= link_to image_tag("styles/subSilver/lang_english/reply.gif", :border => 0, :alt => "Reply to topic", :align => "middle"), :controller => 'post', :action => 'new', :id => @topic %></span></td>
	<td align="left" valign="middle" width="100%"><span class="nav">&nbsp;&nbsp;&nbsp;
	<%= link_to h($system.name)+" Forum Index", {:controller => ''}, :class => 'nav' %> -> <%= link_to h(@forum.name), {:controller => 'forum', :action => 'show', :id => @forum}, :class => 'nav' %>
	</span></td>

  </tr>
    <tr>
	
	  <td align="left" colspan="3"><span class="nav"><%= link_to 'Previous page', { :page => @post_pages.current.previous } if @post_pages.current.previous %>
    <%= link_to 'Next page', { :page => @post_pages.current.next } if @post_pages.current.next %> 
	</span></td>
	</tr>

  </table>
